<%@ tag import="j.framework.core.FApplication" %>
<%@ tag body-content="scriptless" pageEncoding="utf-8" %>
<%@ attribute name="title" type="java.lang.String" %>

<%--
    这是一个没有空白的对话框，在子页面中可使用_dialogArguments参数来获取父窗口所传过过来的数据及父窗口句柄
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="easyui" uri="http://www.joyi.cn/easyui/tags" %>
<%
    String base = FApplication.getResourceUrl("/");
    request.setAttribute("base",base);
    if(title==null || title.length()==0){
        title = "对话框";
    }
    request.setAttribute("title",title);
%>
<!DOCTYPE html>
<html xmlns=http://www.w3.org/1999/xhtml>
<head>
    <title>对话框</title>
    <link rel="stylesheet" type="text/css" href="${base}widgets/easyui/themes/default/easyui.css?0.1" />
    <link rel="stylesheet" type="text/css" href="${base}widgets/easyui/themes/icon.css" />
    <link rel="stylesheet" type="text/css" href="${base}styles/c.css" />
    <script type="text/javascript" src="${base}js/jquery.min.js"></script>
    <script type="text/javascript" src="${base}widgets/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="${base}widgets/easyui/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="${base}js/public.js?0.5"></script>
    <style>
        body{overflow: hidden;}
        .toolbar{text-align:left;padding:10px;background: #F1F5FB;height:43px;overflow:hidden;}
    </style>
</head>
<body>
<script>
    var _dialogArguments;
    if(typeof window.showModalDialog === "function"){
        //这是用模态窗口打开的
        _dialogArguments = window.dialogArguments;
    }else{
        _dialogArguments = window.data;
    }
</script>
<div class="easyui-layout" data-options="fit:true">
    <jsp:doBody/>
</div>
<script type="text/javascript" src="${base}js/http.js?0.1"></script>
<script type="text/javascript" src="${base}js/json2.js?0.1"></script>
<script>
    function cancelSave(){
        if(window.confirm("确认要放弃此次修改吗？")){
            window.returnValue = -1;
            window.close();
        }
    }
    $(function(){
        //获取父页面传过来的参数
        if(_dialogArguments){
            var title = _dialogArguments.title;
            if(typeof title == "string" && title!=""){
                window.document.title = title;
            }else{
                window.document.title = "${title}";
            }
        }
    });
</script>
</body>
</html>


